import layout from '@/layout'
export default {
  path: '/employee',
  component: layout,
  name: 'employee',
  children: [
    {
      path: '',
      
      component: () => import('@/views/employee'),
      meta: {
        title: '员工',
        icon: 'people'
      }
    },
    {
      path: 'detail/:id?',
      // 添加而言：   /employee/detail
      // 修改而言：   /employee/detail/:id  动态路由
      // 综合一起：   /employee/detail/:id?
      name: 'employee',
      component: () => import('@/views/employee/detail.vue'),
      hidden: true,
      meta: {}
    }
  ]
}
